package com.changgou.user.feign;

import com.changgou.pojo.Address;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("user")
@RequestMapping("/address")
public interface AddressFeign {
    @GetMapping("/getAddList")
    public List<Address> getAddList(@RequestParam(name = "username") String username);
}
